wxapp.tools.storage = {
    get: function(t) {
        try {
            return wx.getStorageSync(t);
        } catch (t) {
            return;
        }
    },
    set: function(t, n) {
        try {
            wx.setStorageSync(t, n);
        } catch (t) {}
    },
    setAsync: function(t, n, e) {
        wx.setStorage({
            key: t,
            data: n,
            success: function() {},
            fail: function(c) {
                e && e(t, n);
            }
        });
    },
    remove: function(t) {
        try {
            wx.removeStorageSync(t);
        } catch (t) {}
    },
    clear: function() {
        try {
            wx.clearStorageSync();
        } catch (t) {}
    },
    testSave: function() {}
}, wxapp.tools.wxApiCheck = function(t) {
    return wx.hasOwnProperty(t);
}, wxapp.tools.pad = function() {
    var t = [];
    return function(n, e) {
        var c = e - n.toString().length;
        return c <= 0 ? n : (t[c] || (t[c] = new Array(c + 1).join("0")), t[c] + n);
    };
}(), wxapp.tools.printChild = function(t, n, e) {
    if (t) {
        var c = "";
        if (t._name && (c = c + ",name=" + t._name), t.zIndex && (c = c + ",zIndex=" + t.zIndex), 
        t.csbFile && (c = c + ",csbFile=" + t.csbFile), t.csbRoot && (c = c + ",csbRoot.csbFile=" + t.csbRoot.csbFile), 
        t.csbPath && (c = c + ",csbPath=" + t.csbPath), t._classFullName && (c = c + ",_classFullName=" + t._classFullName), 
        t._children && t._children.length > 0) {
            e += "-", n++;
            for (var r in t._children) wxapp.tools.printChild(t._children[r], n, e);
        }
    } else t = cc.director.getRunningScene(), wxapp.tools.printChild(t, 1, "-");
};